.class Lcom/example/m6wmr/DishesParticularActivity$2;
.super Ljava/lang/Object;
.source "DishesParticularActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/DishesParticularActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/DishesParticularActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/DishesParticularActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/DishesParticularActivity$2;->this$0:Lcom/example/m6wmr/DishesParticularActivity;

    .line 606
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 6
    .param p1, "v"    # Landroid/view/View;

    .prologue
    const/4 v5, 0x0

    .line 610
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity$2;->this$0:Lcom/example/m6wmr/DishesParticularActivity;

    iget-object v3, v3, Lcom/example/m6wmr/DishesParticularActivity;->open:Ljava/lang/String;

    const-string v4, "0"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 612
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity$2;->this$0:Lcom/example/m6wmr/DishesParticularActivity;

    # getter for: Lcom/example/m6wmr/DishesParticularActivity;->context:Landroid/content/Context;
    invoke-static {v3}, Lcom/example/m6wmr/DishesParticularActivity;->access$12(Lcom/example/m6wmr/DishesParticularActivity;)Landroid/content/Context;

    move-result-object v3

    const-string v4, "\u5df2\u6253\u70ca"

    invoke-static {v3, v4, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    .line 653
    :goto_0
    return-void

    .line 617
    :cond_0
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity$2;->this$0:Lcom/example/m6wmr/DishesParticularActivity;

    iget-object v3, v3, Lcom/example/m6wmr/DishesParticularActivity;->open:Ljava/lang/String;

    const-string v4, "1"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 619
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity$2;->this$0:Lcom/example/m6wmr/DishesParticularActivity;

    # getter for: Lcom/example/m6wmr/DishesParticularActivity;->context:Landroid/content/Context;
    invoke-static {v3}, Lcom/example/m6wmr/DishesParticularActivity;->access$12(Lcom/example/m6wmr/DishesParticularActivity;)Landroid/content/Context;

    move-result-object v3

    const-string v4, "\u5df2\u6253\u70ca"

    invoke-static {v3, v4, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    goto :goto_0

    .line 623
    :cond_1
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity$2;->this$0:Lcom/example/m6wmr/DishesParticularActivity;

    iget-object v3, v3, Lcom/example/m6wmr/DishesParticularActivity;->open:Ljava/lang/String;

    const-string v4, "4"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 625
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity$2;->this$0:Lcom/example/m6wmr/DishesParticularActivity;

    # getter for: Lcom/example/m6wmr/DishesParticularActivity;->context:Landroid/content/Context;
    invoke-static {v3}, Lcom/example/m6wmr/DishesParticularActivity;->access$12(Lcom/example/m6wmr/DishesParticularActivity;)Landroid/content/Context;

    move-result-object v3

    const-string v4, "\u5e97\u94fa\u4f11\u606f\u4e2d"

    invoke-static {v3, v4, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    goto :goto_0

    .line 630
    :cond_2
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity$2;->this$0:Lcom/example/m6wmr/DishesParticularActivity;

    # getter for: Lcom/example/m6wmr/DishesParticularActivity;->sumcart:I
    invoke-static {v3}, Lcom/example/m6wmr/DishesParticularActivity;->access$24(Lcom/example/m6wmr/DishesParticularActivity;)I

    move-result v3

    if-lez v3, :cond_4

    .line 631
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity$2;->this$0:Lcom/example/m6wmr/DishesParticularActivity;

    # getter for: Lcom/example/m6wmr/DishesParticularActivity;->context:Landroid/content/Context;
    invoke-static {v3}, Lcom/example/m6wmr/DishesParticularActivity;->access$12(Lcom/example/m6wmr/DishesParticularActivity;)Landroid/content/Context;

    move-result-object v3

    const-string v4, "userInfo"

    invoke-virtual {v3, v4, v5}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    .line 632
    .local v1, "sharedPreferences":Landroid/content/SharedPreferences;
    const-string v3, "uid"

    const-string v4, ""

    invoke-interface {v1, v3, v4}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 633
    .local v2, "uid":Ljava/lang/String;
    const-string v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_3

    .line 635
    new-instance v0, Landroid/content/Intent;

    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity$2;->this$0:Lcom/example/m6wmr/DishesParticularActivity;

    # getter for: Lcom/example/m6wmr/DishesParticularActivity;->context:Landroid/content/Context;
    invoke-static {v3}, Lcom/example/m6wmr/DishesParticularActivity;->access$12(Lcom/example/m6wmr/DishesParticularActivity;)Landroid/content/Context;

    move-result-object v3

    const-class v4, Lcom/example/m6wmr/LoginActivity;

    invoke-direct {v0, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 637
    .local v0, "intent":Landroid/content/Intent;
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity$2;->this$0:Lcom/example/m6wmr/DishesParticularActivity;

    const/16 v4, 0x4ce

    invoke-virtual {v3, v0, v4}, Lcom/example/m6wmr/DishesParticularActivity;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_0

    .line 643
    .end local v0    # "intent":Landroid/content/Intent;
    :cond_3
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 644
    .restart local v0    # "intent":Landroid/content/Intent;
    const-string v3, "shopid"

    iget-object v4, p0, Lcom/example/m6wmr/DishesParticularActivity$2;->this$0:Lcom/example/m6wmr/DishesParticularActivity;

    iget-object v4, v4, Lcom/example/m6wmr/DishesParticularActivity;->shopid:Ljava/lang/String;

    invoke-virtual {v0, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 645
    const-string v3, "shopname"

    iget-object v4, p0, Lcom/example/m6wmr/DishesParticularActivity$2;->this$0:Lcom/example/m6wmr/DishesParticularActivity;

    # getter for: Lcom/example/m6wmr/DishesParticularActivity;->shopname:Ljava/lang/String;
    invoke-static {v4}, Lcom/example/m6wmr/DishesParticularActivity;->access$25(Lcom/example/m6wmr/DishesParticularActivity;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 646
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity$2;->this$0:Lcom/example/m6wmr/DishesParticularActivity;

    const-class v4, Lcom/example/m6wmr/CarOrderActivity;

    invoke-virtual {v0, v3, v4}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 647
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity$2;->this$0:Lcom/example/m6wmr/DishesParticularActivity;

    invoke-virtual {v3, v0}, Lcom/example/m6wmr/DishesParticularActivity;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_0

    .line 650
    .end local v0    # "intent":Landroid/content/Intent;
    .end local v1    # "sharedPreferences":Landroid/content/SharedPreferences;
    .end local v2    # "uid":Ljava/lang/String;
    :cond_4
    iget-object v3, p0, Lcom/example/m6wmr/DishesParticularActivity$2;->this$0:Lcom/example/m6wmr/DishesParticularActivity;

    const-string v4, "\u8d2d\u7269\u8f66\u4e3a\u7a7a"

    const-string v5, "\u8bf7\u9009\u62e9\u5546\u54c1"

    invoke-static {v3, v4, v5}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0
.end method
